<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnWorkDirPanInProjectTable extends AbstractMigration
{
    public function up()
    {
        $this->table('project')
            ->addColumn('work_dir_prefix', 'string', [
                'limit' => 128,
                'null' => false,
                'default' => '',
                'comment' => '工作目录名称前缀(P:/2021-6-28/xxx)'
            ])->save();
    }

    public function down()
    {
        $this->table('project')->removeColumn('work_dir_prefix')->save();
    }
}
